const Mock = require("mockjs");
const data = Mock.mock({
  "items|15": [
    {
      categoryId: "@increment",
      categoryName: "@ctitle",
      categoryNo: '@character("upper")' + "@integer(1, 999)",
    },
  ],
});
module.exports = [
  {
    url: "/category/list",
    type: "get",
    response: (req, res) => {
      const items = data.items;
      return {
        code: 200,
        data: {
          total: items.length,
          items: items,
        },
      };
    },
  },
];